package com.xxl.sso.sample.springmvc.config;

import com.xxl.sso.core.util.JedisUtil;
import org.springframework.stereotype.Component;

@Component
public class JedisBean{
    private String redisAdress;

    public String getRedisAdress() {
        return redisAdress;
    }

    public void init(){
        System.out.printf("redis地址初始化11111111111111111111.");
        JedisUtil.init(getRedisAdress());
    }

    public void setRedisAdress(String redisAdress) {
        System.out.printf("redis地址初始化........");
        this.redisAdress = redisAdress;
    }

}
